<script setup lang="ts">
import { useTabBar } from "../store/usetabBar";
import {
  AlignRightOutlined,
  SearchOutlined,
  BellOutlined,
} from "@ant-design/icons-vue";
const useTabBarStore = useTabBar();
</script>
<template>
  <div class="tabar">
    <div class="right">
      <align-right-outlined style="font-size: 18px; color: #929292" />
      <div class="name">{{ useTabBarStore.tabBarName }}</div>
    </div>
    <div class="left">
      <search-outlined style="font-size: 18px; color: #929292" />
      <bell-outlined style="font-size: 18px; color: #929292" />
      <div class="userInfo">
        <div class="img"></div>
        <div class="name">admin</div>
      </div>
    </div>
  </div>
</template>
<style scoped lang="scss">
.tabar {
  // width: 100%;
  height: 65px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  .right {
    display: flex;
    align-items: center;
    .name {
      margin-left: 30px;
    }
  }
  .left {
    display: flex;
    align-items: center;
    width: 200px;
    justify-content: space-between;
    .userInfo {
      display: flex;
      align-items: center;
      // margin-left: 10px;
      margin-right: 10px;
      .img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #34365a;
        margin-right: 10px;
      }
      .name {
        margin-left: 10px;
      }
    }
  }
}
</style>
